<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>心理测试后台管理</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black" target="fm">AAA 心理测试后台管理</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <!-- 移动端显示 -->
      <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
        <i class="layui-icon layui-icon-spread-left"></i>
      </li>


      <li class="layui-nav-item">

      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-md-inline-block">
        <a href="javascript:;">
          <img src="${pageContext.request.contextPath}/picture/djj.jpg" class="layui-nav-img">
          cxk
        </a>
        <dl class="layui-nav-child">
          <dd><a href="${pageContext.request.contextPath}/PersonalInformation.jsp" >个人信息</a></dd>
          <dd><a href="${pageContext.request.contextPath}/index.jsp">注销</a></dd>
        </dl>
      </li>
<%--      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>--%>
    </ul>
  </div>

  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">性格测试</a>
          <dl class="layui-nav-child">
            <dd><a href="${pageContext.request.contextPath}/XingGe/test.jsp" target="fm">题目管理</a></dd>
            <dd><a href="${pageContext.request.contextPath}/XingGe/testplan.jsp" target="fm">测试计划</a></dd>
            <dd><a href="${pageContext.request.contextPath}/XingGe/result.jsp"target="fm">测试结果</a></dd>
            <dd><a href="${pageContext.request.contextPath}/XingGe/Statistics.jsp" target="fm">报表统计</a></dd>

          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">抑郁测试</a>
          <dl class="layui-nav-child">
            <dd><a href="${pageContext.request.contextPath}/Depression/DepressionManagement.jsp" target="fm">题目管理</a></dd>
            <dd><a href="${pageContext.request.contextPath}/Depression/DepressionTestPlan.jsp" target="fm">测试计划</a></dd>
            <dd><a href="${pageContext.request.contextPath}/Depression/DepressionTestResult.jsp" target="fm">测试结果</a></dd>
            <dd><a href="${pageContext.request.contextPath}/Depression/DepressionReportStatistics.jsp" target="fm">报表统计</a></dd>

          </dl>
        </li>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">焦虑测试</a>
          <dl class="layui-nav-child">
            <dd><a href="${pageContext.request.contextPath}/JiaoLv/listsas.jsp" target="fm">题目管理</a></dd>
            <dd><a href="${pageContext.request.contextPath}/JiaoLv/testplan.jsp" target="fm">测试计划</a></dd>
            <dd><a href="${pageContext.request.contextPath}/JiaoLv/testresult.jsp" target="fm">测试结果</a></dd>
            <dd><a href="${pageContext.request.contextPath}/JiaoLv/report.jsp" target="fm">报表统计</a></dd>

          </dl>
        </li>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">系统管理</a>
          <dl class="layui-nav-child">
            <dd><a href="${pageContext.request.contextPath}/Dept/dept1.jsp" target="fm">部门管理</a></dd>
            <dd><a href="${pageContext.request.contextPath}/Dept/dept2.jsp" target="fm">角色管理</a></dd>
            <dd><a href="${pageContext.request.contextPath}/Dept/dept3.jsp">菜单管理</a></dd>
            <dd><a href="${pageContext.request.contextPath}/Dept/dept4.jsp">用户管理</a></dd>

          </dl>
        </li>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">日志监控</a>
          <dl class="layui-nav-child">
            <dd><a href="${pageContext.request.contextPath}/caozuo/test.jsp" target="fm">操作日志</a></dd>

          </dl>
        </li>

      </ul>
    </div>
  </div>

  <div class="layui-body">
    <!-- 内容主体区域 -->

    <iframe name="fm" src=""  style="width: 100%;height:100%"></iframe>
  </div>

  <div class="layui-body">
    <iframe id="iframMain" width="100%" height="100%" src="${pageContext.request.contextPath}/hello/hello.jsp"></iframe>
  </div>

  <div class="layui-footer">
    <!-- 底部固定区域 -->
    底部固定区域
  </div>
</div>
</div>
<script src="${pageContext.request.contextPath}/layui/layui.js"></script>
<script>
  //JS
  layui.use(['element', 'layer', 'util'], function(){
    var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

    //头部事件
    util.event('lay-header-event', {
      //左侧菜单事件
      menuLeft: function(othis){
        layer.msg('展开左侧菜单的操作', {icon: 0});
      }
      ,menuRight: function(){
        layer.open({
          type: 1
          ,content: '<div style="padding: 15px;"></div>'
          ,area: ['260px', '100%']
          ,offset: 'rt' //右上角
          ,anim: 5
          ,shadeClose: true
        });
      }
    });

  });
  layui.use(['element', 'jquery'], function () {
    var element = layui.element;
    var $ = layui.jquery;
    $(function () {
      //页面加载之后执行的代码
      //点击a标签的时候，修改iframe的src属性
      $("dd>a").click(function (e) {
        //阻断超链接的跳转事件
        e.preventDefault();
        //取得超链接对象的href属性值赋给iframe的src属性
        $("#iframMain").attr("src", $(this).attr("href"));
      })
    })
  });
</script>
</body>
</html>